<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>yt-dlp - 强大的音视频下载工具</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .text-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .code-style {
            background: #f4f4f5;
            color: #18181b;
            padding: 0.2rem 0.5rem;
            border-radius: 0.375rem;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
        }
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: -0.2rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <div class="mb-6">
                <i class="fas fa-download text-6xl opacity-80"></i>
            </div>
            <h1 class="text-5xl md:text-6xl font-bold mb-6">yt-dlp</h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">强大的命令行音视频下载工具</p>
            <p class="text-lg max-w-3xl mx-auto opacity-80">基于 youtube-dl 的增强版本，支持数千个网站的音视频下载</p>
            <div class="mt-10">
                <a href="https://github.com/yt-dlp/yt-dlp" target="_blank" class="inline-flex items-center bg-white text-purple-700 px-8 py-4 rounded-full font-semibold hover:bg-gray-100 transition-all duration-300 shadow-lg">
                    <i class="fab fa-github mr-2"></i>
                    访问 GitHub 仓库
                    <i class="fas fa-arrow-right ml-2"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-6xl mx-auto px-6 py-16">
        <!-- Introduction -->
        <section class="bg-white rounded-2xl shadow-xl p-8 md:p-12 mb-12 card-hover">
            <h2 class="text-3xl font-bold mb-6 text-gray-800">
                <i class="fas fa-info-circle mr-3 feature-icon"></i>
                项目简介
            </h2>
            <p class="text-lg text-gray-700 leading-relaxed">
                <span class="drop-cap">y</span>t-dlp 是一个基于 youtube-dl 的分支，提供了一个功能丰富的命令行音频/视频下载器，支持包括 YouTube 在内的数千个站点。用户可以通过二进制文件、pip 或第三方包管理器进行安装。官方提供了多种格式的可执行文件，包括 Windows、Linux 和 MacOS 平台的二进制文件，以及用于验证 GPG 签名的公钥。此外，还有源 tarball 和 GNU-style SHA512 求和等资源。更新可以通过 <code class="code-style">yt-dlp -U</code> 命令进行，也可以使用 pip 或其他第三方包管理器。
            </p>
        </section>

        <!-- Features Grid -->
        <section class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-center text-gray-800">核心特性</h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="text-4xl mb-4 feature-icon">
                        <i class="fas fa-globe"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">广泛支持</h3>
                    <p class="text-gray-600">支持从数千个站点下载音频/视频，并提供了详细的用法和选项</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="text-4xl mb-4 feature-icon">
                        <i class="fas fa-cube"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">多种安装方式</h3>
                    <p class="text-gray-600">用户可以通过二进制文件、pip 或第三方包管理器安装 yt-dlp</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="text-4xl mb-4 feature-icon">
                        <i class="fas fa-desktop"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">跨平台支持</h3>
                    <p class="text-gray-600">官方提供了不同平台的可执行文件，包括 Windows、Linux 和 MacOS</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="text-4xl mb-4 feature-icon">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">安全验证</h3>
                    <p class="text-gray-600">提供了源 tarball 和 GNU-style SHA512 求和</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="text-4xl mb-4 feature-icon">
                        <i class="fas fa-sync"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">便捷更新</h3>
                    <p class="text-gray-600">通过 <code class="code-style">yt-dlp -U</code> 命令可以更新二进制文件</p>
                </div>
                
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="text-4xl mb-4 feature-icon">
                        <i class="fas fa-code-branch"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3 text-gray-800">多发布频道</h3>
                    <p class="text-gray-600">提供 stable、nightly 和 master 三个发布频道供选择</p>
                </div>
            </div>
        </section>

        <!-- Release Channels -->
        <section class="bg-white rounded-2xl shadow-xl p-8 md:p-12 mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-code-branch mr-3 feature-icon"></i>
                发布频道
            </h2>
            <div class="space-y-6">
                <div class="border-l-4 border-green-500 pl-6">
                    <h3 class="text-xl font-semibold mb-2 text-gray-800">
                        <i class="fas fa-check-circle text-green-500 mr-2"></i>
                        Stable（稳定版）
                    </h3>
                    <p class="text-gray-600">默认频道，经过用户充分测试，适合生产环境使用</p>
                </div>
                
                <div class="border-l-4 border-blue-500 pl-6">
                    <h3 class="text-xl font-semibold mb-2 text-gray-800">
                        <i class="fas fa-moon text-blue-500 mr-2"></i>
                        Nightly（每日构建）
                    </h3>
                    <p class="text-gray-600">每日构建版本，推荐给普通用户，包含最新功能和修复</p>
                </div>
                
                <div class="border-l-4 border-purple-500 pl-6">
                    <h3 class="text-xl font-semibold mb-2 text-gray-800">
                        <i class="fas fa-rocket text-purple-500 mr-2"></i>
                        Master（主分支）
                    </h3>
                    <p class="text-gray-600">每次推送后构建，包含最新的修复和添加，适合开发者和测试人员</p>
                </div>
            </div>
        </section>

        <!-- Installation Flow -->
        <section class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-center text-gray-800">安装流程图</h2>
            <div class="bg-white rounded-2xl shadow-xl p-8">
                <div class="mermaid">
                    graph TD
                        A[开始安装 yt-dlp] --> B{选择安装方式}
                        B -->|二进制文件| C[下载对应平台的可执行文件]
                        B -->|pip| D[运行 pip install yt-dlp]
                        B -->|包管理器| E[使用系统包管理器安装]
                        C --> F[验证 GPG 签名]
                        D --> G[pip 安装完成]
                        E --> H[包管理器安装完成]
                        F --> I[安装成功]
                        G --> I
                        H --> I
                        I --> J[使用 yt-dlp -U 更新]
                        
                        style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style I fill:#48bb78,stroke:#fff,stroke-width:2px,color:#fff
                        style J fill:#4299e1,stroke:#fff,stroke-width:2px,color:#fff
                </div>
            </div>
        </section>

        <!-- Quick Start -->
        <section class="bg-gradient-to-r from-purple-600 to-indigo-600 rounded-2xl shadow-xl p-8 md:p-12 text-white">
            <h2 class="text-3xl font-bold mb-6">
                <i class="fas fa-rocket mr-3"></i>
                快速开始
            </h2>
            <div class="space-y-4">
                <div class="bg-white bg-opacity-10 rounded-lg p-4 backdrop-blur">
                    <p class="font-semibold mb-2">1. 安装 yt-dlp</p>
                    <code class="block bg-black bg-opacity-30 p-3 rounded">pip install yt-dlp</code>
                </div>
                <div class="bg-white bg-opacity-10 rounded-lg p-4 backdrop-blur">
                    <p class="font-semibold mb-2">2. 下载视频</p>
                    <code class="block bg-black bg-opacity-30 p-3 rounded">yt-dlp https://www.youtube.com/watch?v=VIDEO_ID</code>
                </div>
                <div class="bg-white bg-opacity-10 rounded-lg p-4 backdrop-blur">
                    <p class="font-semibold mb-2">3. 更新到最新版本</p>
                    <code class="block bg-black bg-opacity-30 p-3 rounded">yt-dlp -U</code>
                </div>
            </div>
        </section>
    </main>

    <script>
        mermaid.initialize({ 
            startOnLoad: true,
            theme: 'default',
            themeVariables: {
                primaryColor: '#667eea',
                primaryTextColor: '#fff',
                primaryBorderColor: '#7c3aed',
                lineColor: '#5a67d8',
                secondaryColor: '#e0e7ff',
                tertiaryColor: '#fff'
            }
        });
    </script>
</body>
</html>